<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE>
<html>
<head>
<title>Insert title here</title>
</head>
<body>

	<h1>Login</h1>

	<c:if test="${error}"><span style="color:red;">用户名或密码错误</span></c:if>

	<form action="/login" method="post">
		<p>
			<label for="username">Username</label> <input id="username"
				name="username" type="text" />
		</p>
		<p>
			<label for="password">Password</label> <input id="password"
				name="password" type="password" />
		</p>
		<input type="submit" value="Login" />
	</form>
</body>
</html>
